package me.luger.core.commom.util;

import org.apache.commons.lang3.ArrayUtils;

/**
 * Created by a on 2017/1/10.
 */
public class ArrayUtil extends ArrayUtils {
    public static String toStringWithoutBrackets(Object[] array,String stringIfNull){
        if(null == array){
            return stringIfNull;
        }
        String s = toString(array,stringIfNull);
        return s.substring(1,s.length()-1);
    }

    public static String toStringWithoutBrackets(Object[] array){
        return toStringWithoutBrackets(array,"");
    }
}
